home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscClockPalette / MiscClockView.subproj / MiscClockView.h < prev    next >
Encoding:
Text File  |  1995-07-06  |  2.1 KB  |  100 lines

  1. //
  2. //    MiscClockView.m -- a simple view class for displaying date/time
  3. //        Written by Scott Anguish Copyright (c) 1993 by Scott Anguish.
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #import <appkit/appkit.h>
  15.  
  16. @interface MiscClockView:View
  17. {
  18.     id             theImage;
  19.     id             clockbase;
  20.  
  21.     NXImage       *imageA;
  22.     NXImage       *imageP;
  23.  
  24.     NXImage       *imageColon;
  25.     NXImage       *YearColon;
  26.     NXImage       *imageAM;
  27.     NXImage       *imagePM;
  28.  
  29.     NXImage       *DigitalNumbers[10];
  30.     NXImage       *DateNumbers[10];
  31.     NXImage       *YearNumbers[10];
  32.     NXImage       *DayNames[7];
  33.     NXImage       *MonthNames[12];
  34.     NXPoint        colonPosition;
  35.  
  36.     int            seconds;
  37.     int            minutes;
  38.     int            hours;
  39.     int            date;
  40.     int            month;
  41.     int            year;
  42.     int            weekday;
  43.     int            meridian;
  44.  
  45.     BOOL           militaryTime;
  46.     BOOL           showYear;
  47.  
  48.     BOOL           keepingTime;
  49.     BOOL           hidden;
  50.  
  51.     DPSTimedEntry  timedEntry;
  52. }
  53.  
  54. - initFrame:(const NXRect *)frameRect;
  55. - free;
  56.  
  57. - awake;
  58. - awakeFromNib;
  59. - setTime:(struct tm *) theTime;
  60.  
  61. - takeMinutesFrom:sender;
  62. - takeHoursFrom:sender;
  63. - takeWeekdayFrom:sender;
  64. - takeDateFrom:sender;
  65. - takeMonthFrom:sender;
  66.  
  67. - setSeconds:(int)theSeconds;
  68. - setMinutes:(int)theMinutes;
  69. - setHours:(int)theHours;
  70. - setWeekday:(int)theWeekday;
  71. - setDate:(int)theDate;
  72. - setMonth:(int)theMonth;
  73. - setYear:(int)theYear;
  74. - setMeridian:(int)theMeridian;
  75.  
  76. - (int)year;
  77. - (int)month;
  78. - (int)weekday;
  79. - (int)date;
  80. - (int)hours;
  81. - (int)minutes;
  82. - (int)seconds;
  83.  
  84. - (BOOL)militaryTime;
  85. - (BOOL)showYear;
  86. - setShowYear:(BOOL)state;
  87. - setMilitaryTime:(BOOL)state;
  88. - (BOOL)keepingTime;
  89. - setKeepingTime:(BOOL)yesno;
  90.  
  91. - ticktock;
  92. - startClock:sender;
  93. - stopClock:sender;
  94. - setToCurrentTime:sender;
  95.  
  96. - setHide:(BOOL)hide;
  97. - (BOOL)isHidden;
  98.  
  99. @end
  100.